import dva from 'dva';
import 'antd/dist/antd.css';
import './index.css';

// 1. Initialize
const app = dva({
  initialState: {
  },
});

// 2. Plugins
// app.use({});

// 3. Model
// app.model(require('./models/example'));
app.model(require('./models/users'));
app.model(require("./models/candiate"));
app.model(require("./models/candidates"));
app.model(require("./models/subjects"));
app.model(require("./models/vote"));
app.model(require("./models/rolelist"));
app.model(require('./models/votes'));
app.model(require('./models/user'));
app.model(require('./models/roles'));


// 4. Router
app.router(require('./router'));

// 5. Start
app.start('#root');
